<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  <!--公共部分开始-->
    <div id="container">
	  <div id="header">
<!-- 	   右上功能区 -->
		<div class="top">
		  <div class="left">
          <%--   <a href="${ctx}/index.html" id="logo"></a> --%>
          </div>
		  <div class="right">
            <ul id="toolbar">
              <li>
                <span> 欢迎 </span>
                <a class="user" href="${ctx}/home/toUpdate.do?id=${sessionScope.sessionUeser.id}">&nbsp;${sessionScope.sessionUeser.name}</a>
			      <a  href="#"><i class='lnbar_arr' style=" top:23%; left:79%;"></i></a>
				<ul  id="EditPass">
              		<li style="cursor: pointer; padding: 0 10px 0 9px;">
	              		<a  data-toggle="modal" data-target="#passwordModal"  onclick="eliminateModal()">修改密码</a>
              		</li>
              	</ul>         
              </li>
              <li class="language">
                <ul id="lnbar">
                  <li class="link Language">
                    <a>
                      <img src="${ctx}/images/c_flag.png"></img><i class="lnbar_arr"></i>
                    </a>
                    <ul>
                      <li ><p>
                      <img src="${ctx}/images/e_flag.png"></img><span>English</span></p></li>
                    </ul>	
                  </li>
                </ul>
              </li>
 
              <li><a id="settings" href="#">Settings</a></li>
              <li><a id="logout" href="${ctx}/home/doLogout.do" target="_parent" onclick="if(!confirm('Are you sure logout?'))return false;"></a></li>
            </ul>
          </div>
	    </div>
 <!-- 	   右上功能区end -->
<!-- 	    菜单 -->
	    <div class="cf">
		  <ul id="nav" >
		   <li class="link">
			    <a href="javascript:return false;">销售管理<i class="nav_arr"></i></a>
			    <ul style="display: none;">
			      <li><a href="${ctx}/sell/toAdd.do">收账</a></li>
				  <li><a href="${ctx}/sell/list.do">收账列表</a></li>
				</ul>
			  </li>
			 <li class="link">
			    <a href="javascript:return false;">人员管理<i class="nav_arr"></i></a>
			    <ul style="display: none;">
			      <li><a href="${ctx}/home/toAddUser.do">添加人员</a></li>
				  <li><a href="${ctx}/home/userList.do">人员列表</a></li>
				</ul>
			  </li>
			  <li class="link">
			    <a href="javascript:return false;">录入管理<i class="nav_arr"></i></a>
			    <ul style="display: none;">
			    	<c:if test="${sessionScope.sessionUeser.role==3}">
				       <li ><a href="${ctx}/input/toAdd.do">药品录入</a></li>
			    	</c:if>
				   <li ><a href="${ctx}/input/index.do">药品列表</a></li>
				</ul>
			  </li>
			  <c:if test="${sessionScope.sessionUeser.role==3}">
				  <li class="link">
				    <a href="javascript:return false;">查询结转管理<i class="nav_arr"></i></a>
				    <ul style="display: none;">
				       <li ><a href="${ctx}/sell/transfer.do">结转</a></li>
					   <li ><a href="${ctx}/input/select.do">统计</a></li>
					</ul>
				  </li>
			 </c:if>
			  
		  </ul>
        </div>
 <!-- 	    菜单 --end>
<!-- 密码修改End -->
			<div class="modal fade" id="passwordModal" tabindex="-1" role="dialog" aria-labelledby="passwordModal" aria-hidden="true">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header" align="center">
							<button type="button" class="close" data-dismiss="modal" aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
								<h4 class="modal-title" id="passwordModal">修改密码</h4>
						</div>
						<!-- 内容 -->
						<div class="modal-body" align="center">
						  <table class="form" border="0">
							  <tr>
							    <td  class="tit"> 密码:</td>
							    <td>
							     <input type="password" style="display:none;"/>
							      <input type="password" name="password" id="Editpassword" style="width:180px;" class="easyui-validatebox" data-options="required:true,validType:'passLength'"  autocomplete="off"  />
							    </td>
							   </tr>
							   <tr>
							   	<td>&nbsp;</td>
							    <td id="Editlevel" class="pw-strength" style="height:50px;  padding-bottom: 8px;" bordercolor="red" >           	
										<div class="pw-bar"></div>
										<div class="pw-bar-on"></div>
										<div class="pw-txt">
										<span>弱</span>
										<span>中</span>
										<span>强</span>
										</div>
								</td>
							 </tr>
							 <tr>	
							    <td  class="tit">
							      验证密码:
							    </td>
							    <td>
							      <input type="password" id="valid_Editpassword" style="width:180px;"  class="easyui-validatebox" data-options="required:true,validType:'passLength'"   />
							    </td>
							  </tr>
							  <tr> 
							    <td> &nbsp; </td>
							    <td>
							     	 &nbsp;
							    </td>
							  </tr>  
							   <tr> 
							    <td> &nbsp;<br><br></td>
							    <td>
							     	<span style="color: red" id="passwordTip"></span>
							    </td>
							  </tr>  
						  </table>
						</div>
						<div class="modal-footer"  style="text-align: center;">
							<button id="dalogCloseButton" class="btn btn-primary"  type="button" class="button blue" onclick="editPassword()" >保存</button>
							<button type="button" class="btn btn-default" data-dismiss="modal" onclick="eliminateModal()">取消</button>
						</div>
					</div>
				</div>
			</div>
		<!-- 密码修改End -->
	  </div>
    </div>
   <!--公共部分结束-->